package com.example.dzbsh.dao;

import com.example.dzbsh.model.Dept;
import com.example.dzbsh.model.DeptExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface DeptMapper {

    List<Map<String,Object>> findXiangxiByDeptId(@Param("deptid") String ppDeptId);

    List<String> selectDeptIdByParentdDeptId(@Param("deptid") String mmDeptId);

    Object getMaxOrderNum(@Param("deptid") String ppParentDeptID);

    int countByExample(DeptExample example);

    int deleteByExample(DeptExample example);

    int deleteByPrimaryKey(String deptid);

    int insert(Dept record);

    int insertSelective(Dept record);

    List<Dept> selectByExample(DeptExample example);

    Dept selectByPrimaryKey(String deptid);

    int updateByExampleSelective(@Param("record") Dept record, @Param("example") DeptExample example);

    int updateByExample(@Param("record") Dept record, @Param("example") DeptExample example);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);
}